<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>今日已点菜单列表</title>
<@c.baseCss />
<@css.food />
<@c.baseJs />
<@js.food />
  <script type="text/javascript">
  </script>
</head>
<body>
<div class="main">
<@menu.menu />
  <div class="foodList">
    <form action="submitFoods.html" method="get" id="foodForms">
      <table class="mytb" width="100%" >
        <colgroup>
          <col width="10%">
          <col width="10%">
          <col width="25%">
          <col width="10%">
          <col width="5%">
          <col width="20%">
          <col width="20%">
        </colgroup>
        <thead>
        <tr>
          <th>序号</th>
          <th>点餐人</th>
          <th>菜名</th>
          <th>单价</th>
          <th>合计</th>
          <th>点餐时间</th>
          <th>操作</th>
        </tr>
        </thead>
        <tbody>
		<#if userOrderItems?has_content>
			<#list userOrderItems as uoi>
            <tr class="trContent">
              <td class="tct" rowspan="${uoi.ois?size}">${uoi_index+1}</td>
              <td rowspan="${uoi.ois?size}"><span class=sign>${uoi.nickName}</span></td>
				<#list uoi.ois as oi>
                  <td><span class="sign_yelo">${oi.foodName}</span></td>
                  <td class="tct">${oi.foodPrice}</td>
					<#if oi_index==0>
                      <td class="tct" rowspan="${uoi.ois?size}"><span class="sign">￥<b>${uoi.sumFoodPrice}</b></span></td>
					</#if>
                  <td class="tct">${oi.createDate?string('MM月dd日 HH:mm:ss')}</td>
                  <td class="tct">
				  <#--<a href="###" fid="" class="viewBtn">查看</a>-->
                    <!-- <a href="###" fid="" class="deleteBtn">取消</a> -->
					  <#if oi.status==0>
					  <#--<a href="###" fid="${oi.foodId}" oid="${oi.id}" class="cancelOrderBtn">取消</a>-->
                        订单还没提交给老板哦
					  <#else>
                        订单已提交
					  </#if>
                  </td>
                </tr><tr>
				</#list>
            </tr>
			</#list>
		<#else>
        <tr>
          <td colspan="5" class="tct">无</td>
        </tr>
		</#if>
        <tr>
          <td colspan="7" class="tct">
            <input type="button" class="submitBtn" value="提交今日菜单" />
          </td>
        </tr>
        </tbody>
      </table>
    </form>
  </div>
<@c.foot />
</div>
</body>
</html>